package com.XZDP.entity;

public class RedisData {
    //逻辑过期时间,人为维护
    private long expired;
    //存储任意对象
    private Object Data;

    public RedisData() {
    }

    public RedisData(long expired, Object data) {
        this.expired = expired;
        Data = data;
    }

    public long getExpired() {
        return expired;
    }

    public void setExpired(long expired) {
        this.expired = expired;
    }

    public Object getData() {
        return Data;
    }

    public void setData(Object data) {
        Data = data;
    }
}
